import http from '../common/http.js'

//收藏
export const collectApi = (parm)=>{
	return http.post('/api/collect/collect',parm)
}

//是否收藏
export const hasCollectApi = (parm)=>{
	return http.get('/api/collect/hasCollect',parm)
}
//查询我的收藏列表
export const getMyCollectApi = (parm)=>{
	return http.get('/api/collect/getMyCollect',parm)
}

//取消收藏
export const cancelCollectApi = (parm)=>{
	console.log(parm)
	return http.post('/api/collect/cancelCollect',parm)
}